package com.cs.framework.ui.util;

/**
 * UI常量定义
 * 
 * @author hedongzhou
 * 
 */
public class UIConstant {

	/**
	 * UI视图ID
	 */
	public final static String UI_VIEW_ID = "UI_VIEW";

	/**
	 * 页面的视图路径前缀
	 */
	public static final String VIEW_PATH_FOR_PAGE = "page:";

	/**
	 * 面板的视图路径前缀
	 */
	public static final String VIEW_PATH_FOR_PANEL = "panel:";

	/**
	 * 字段的视图路径前缀
	 */
	public static final String VIEW_PATH_FOR_FIELD = "field:";

	/**
	 * 页面模板资源路径
	 */
	public static final String PAGE_TEMPLATE_PATH = "classpath:com/cs/framework/ui/template/page/%s.tpl";

	/**
	 * 页面模板默认名称
	 */
	public static final String DEFAULT_PAGE_TEMPLATE_NAME = "ext";

	/**
	 * 页面模板名称属性配置名称
	 */
	public final static String PAGE_TEMPLATE_NAME_PROPERTY = "app.tpl";

	/**
	 * 页面xml配置路径
	 */
	public static final String PAGE_XML_PATH = "classpath:**/%s.page.xml";

	/**
	 * 面板xml配置路径
	 */
	public static final String PANEL_XML_PATH = "classpath:**/%s.panel.xml";

	/**
	 * 字段xml配置路径
	 */
	public static final String FIELD_XML_PATH = "classpath:**/%s.field.xml";

	/**
	 * 页面json配置路径
	 */
	public static final String PAGE_JSON_PATH = "classpath:**/%s.page.json";

	/**
	 * 面板json配置路径
	 */
	public static final String PANEL_JSON_PATH = "classpath:**/%s.panel.json";

	/**
	 * 字段json配置路径
	 */
	public static final String FIELD_JSON_PATH = "classpath:**/%s.field.json";

	/**
	 * 子控件类型
	 * 
	 * @author hedongzhou.wb
	 * 
	 */
	public static final class ChildType {

		/**
		 * 字段
		 */
		public static final String field = "f";

		/**
		 * 面板
		 */
		public static final String panel = "p";

	}

}
